package com.example.fzj.hazelcast;

import com.hazelcast.config.Config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.session.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession;

@SpringBootApplication
@EnableHazelcastHttpSession()
public class HazelcastClusterApplication {

    public static void main(String[] args) {
        SpringApplication.run(HazelcastClusterApplication.class, args);
    }

    @Bean
    public Config config(){
        return new Config();
    }
}
